package com.shkco.exception;

import lombok.Getter;

@Getter
public enum GlobalExceptionCode {

    OK("成功","0"),
    ERROR("失败","-1"),
    PARAM_IS_NULL("参数不能为空","-2"),

    USER_REGISTERED("用户已注册！","3001"),
    USER_INEXISTENCE("用户不存在！","3002"),
    PASSWORD_MISTAKE("密码错误","3003"),
    INVITECODE_MISTAKE("邀请码错误","3003"),
    USER_SAVE("用户保存失败！","4001"),

    PHONE_IS_NULL("手机号信息有误，请重新输入！","5001"),
    IMGCODE_IS_NULL("图形验证码不能为空","5002"),
    PHONE_CODE_IS_NULL("验证码不能为空","5003"),
    PHONE_CODE_MISTAKE("验证码错误","5004"),
    IMGCOD_EXPIRED("图形验证码过期！请刷新页面重新获取！","5005"),
    IMGCOD_MISTAKE("图形验证码错误！请重新输入！","5006"),
    OPERATE_FREQUENTLY("操作过于繁忙！请稍后重试！","5007"),
    USER_SHIELDING("该用户已被拉入黑名单！","5008"),

    COURSE_EXISTING("课程已存在！","6001"),
    COURSE_NO_EXISTING("课程不存在！","6002"),
    COURSE_RELEASE_FAILURE("课程发布失败！","6003"),
    COURSE_SHELVES_FAILURE("课程下架失败！","6004"),
    COURSE_TYPE_INEXISTENCE("课程类型不存在！","6005"),
    COURSE_ACQUIRE_FAILURE("课程获取失败！","6006"),
    COURSE_MEDIA_FILE_IS_NULL("课程视频不存在！","6007"),
    COURSE_NO_PERMISSION("请购买视频！","6008"),
    COURSE_MEDIA_FILE_OVERDUE("视频过期，请重新购买！","6008"),

    COURSE_ORDER_INEXISTENCE("订单不存在！","7001"),
    COURSE_ORDER_PROCESSED("该订单已处理！","7002"),
    PLACE_AN_ORDER_FAILURE("下单失败！","7003"),



   ALIPAY_PAY_FAILURE("支付宝支付失败！","8001"),


    KILL_ACTIVITY_INEXISTENCE("秒杀活动不存在！","9001"),
    KILL_ACTIVITY_PUBLISH_BEFOR("请在指定时间前发布秒杀活动！","9002"),
    KILL_ACTIVITY_PUBLISH("秒杀活动已发布！","9003"),
    KILL_COURSE_EXISTING("秒杀商品已存在！","9004"),
    KILL_ACTIVITY_NOT_COURSE("当前活动没有课程！","9005"),
    KILL_COURSE_INEXISTENCE("秒杀课程不存在！","9006"),
    KILL_COURSE_NOT_IN_TIME("秒杀课程不在秒杀时间内！","9007"),
    PLEASE_DO_NOT_REPEAT_PURCHASE("请勿重复购买！","9008"),
    STOCK_INSUFFICIENT("课程不足！无法购买！","9008"),
    ;

    private String msg;
    private String code;

    GlobalExceptionCode(String msg, String code) {
        this.msg = msg;
        this.code = code;
    }
}
